package com.yugao.fintech.antelope.system.model.rqrs.ram;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 资源权限响应, resource_permission

 */
@Data
public class ResourcePermSaveReq {
    @ApiModelProperty(value = "资源动作, eg: sys:user:save")
    private List<String> actionList;

    @ApiModelProperty(value = "被授权主体id, eg: roleId")
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long subjectId;
}
